package cn.ljx.dao.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import cn.ljx.dao.ProblemTypeDao;
import cn.ljx.entity.TBProblemType;
import cn.ljx.mapping.TBProblemTypeMapper;

@Repository("ProblemTypeDao")
public class ProblemTypeDaoImpl implements ProblemTypeDao {
	
	@Resource(name = "TBProblemTypeMapper")
    private TBProblemTypeMapper tbProblemTypeMapper;


	public int delectProblem(String id) {
		// TODO Auto-generated method stub
		return tbProblemTypeMapper.delectProblem(id);
	}

	public int addProblem(TBProblemType tbproblemtype) {
		// TODO Auto-generated method stub
		return tbProblemTypeMapper.addProblem(tbproblemtype);
	}

	public TBProblemType getProblemById(String id) {
		// TODO Auto-generated method stub
		return tbProblemTypeMapper.getProblemById(id);
	}

	public int updateProblem(TBProblemType tbproblemtype) {
		// TODO Auto-generated method stub
		return tbProblemTypeMapper.updateProblem(tbproblemtype);
	}

	public TBProblemType getProblemByName(String problem) {
		// TODO Auto-generated method stub
		return tbProblemTypeMapper.getProblemByName(problem);
	}

	public List<TBProblemType> gettbProblemList(String problem) {
		// TODO Auto-generated method stub
		return tbProblemTypeMapper.gettbProblemList(problem);
	}

	
	
}
